package io.jee.medusa.orm.pager.support;

import io.jee.medusa.orm.pager.OrderByBuilder;

public class PagerSupport extends ConditionSupport {
	
	private int offset;
	private String storeName;
	private String storeType;

	@Override
	public void orderBy(OrderByBuilder builder) {
		builder.on(storeName, storeType);
	}

	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		super.getPager().setIndex(offset);
		this.offset = offset;
	}
	
	public String getStoreName() {
		return storeName;
	}

	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}

	public String getStoreType() {
		return storeType;
	}

	public void setStoreType(String storeType) {
		this.storeType = storeType;
	}

}
